package tests;

import static org.junit.Assert.*;
import static org.junit.Assert.assertSame;
import network.Address;

import org.junit.Test;

public class AddressTest {

	@Test
	public final void testEqualsObject() {
		Address a1 = new Address("192.168.1.1");
		Address a2 = new Address("192.168.1.1");
		assertNotSame(a1, a2);
		assertEquals(a1, a2);

		Address a3 = new Address("192.168.1.2");
		assertFalse(a3.equals(a2));
		assertFalse(a3.equals((Object) a2));
	}

}
